package com.vnaloha.common.service;

import java.util.List;

import com.vnaloha.common.model.User;

public interface UserService {
	
	/**
	 * Add new user
	 * @param user object {@link User}
	 */
	public void addUser(User user);
	
	/**
	 * Update user
	 * @param user object {@link User}
	 */
	public void update(User user);
	
	/**
	 * Get all user in system
	 * @return a list {@link User}. <code>null</code> if not found
	 */
	public List<User> listUser();
	
	/**
	 * Get user by id
	 * @param id this is user id
	 * @return a {@link User}. <code>null</code> if not found
	 */
	public User getById(Integer id);
	
	/**
	 * Remove user
	 * @param id this is user id
	 */
	public void removeUser(Integer id);
}
